package com.wangwei.modules.servlet

import javax.servlet.ServletConfig
import javax.servlet.http.HttpServlet
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
/*
 *普通的servlet
 */
class MyServlet : HttpServlet {
	constructor() : super()

	override fun _init(config: ServletConfig?) {
		print("MyServlet 被初始化")
	}
	
	override fun doGet(req: HttpServletRequest, resp: HttpServletResponse) {
		resp.sendError(200,"do get")
	}
}